package com.rockwell.maze800.test;

import org.opencv.core.Point;

import com.rockwell.maze800.model.IDetector;

public class DummyBarrierDetector implements IDetector {

	boolean[] m_present;
	
	int m_presentIndex;
	
	public DummyBarrierDetector(boolean[] treasurePresent) {
		m_present = treasurePresent;
	}
	@Override
	public boolean isPresent() {
		return m_present[m_presentIndex++];
	}

	@Override
	public Point getDrift() {
		return null;
	}

	@Override
	public void onDetect(boolean present, Point center, float radius) {
	}

}
